#include <iostream>
using std::cout;
using std::endl;

int g_number = 1;
void test0(){
    int l_number = 2;
    int l_number2 = 7;
    static int s_number = 3;
    /* cout << "&test0:" << &test0 << endl; */

    const char * p = "world";
    cout << p << endl;
    cout << &p << endl;

    char * pstr = new char[10]();
    /* cout << pstr << endl; */
    cout << endl;
    cout << "&l_number2:" << &l_number2 << endl;
    cout << "&l_number:" << &l_number << endl;
    printf("pstr:%p\n",pstr);
    cout << "&s_number:" << &s_number << endl;
    cout << "&g_number:" << &g_number << endl;
    printf("p:%p\n",p);
    printf("&test0:%p\n",&test0);
    cout << endl;

}

void test1(){
    cout << "hello" << endl;
}

int main(void){
    test0();
    printf("&test1:%p\n",&test1);
    cout << endl;
    printf("&main:%p\n",&main);
    return 0;
}
